Add ret to return from console_uninit() function
authorJimmy Huang <[email protected]>
Thu, 31 Dec 2015 08:52:35 +0000 (16:52 +0800)
committerYidi Lin <[email protected]>
Mon, 4 Jan 2016 01:49:39 +0000 (09:49 +0800)
The 'ret' was missing in console_uninit() implementation, so the
program doesn't return from console_uninit(). Instead, it keeps
executing the following instructions which is not expected.

Change-Id: I810684f37f61c41c6f95a3bb36914d0765da8571
Signed-off-by: Jimmy Huang <[email protected]>
drivers/console/console.S

index 40a6db9f4899711d3487567c0e04603807c131a8..b7723638e3fe751268ee4a2b98aeb2ea271d6b62 100644 (file)
@@ -79,6 +79,7 @@ func console_uninit
        mov     x0, #0
        adrp    x3, console_base
        str     x0, [x3, :lo12:console_base]
+       ret
 endfunc console_uninit
 
        /* ---------------------------------------------